package vista;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;

public class PanelSur extends Paneles {

	private static final long serialVersionUID = 1L;

	JLabel labelPista = new JLabel("");
	
	public PanelSur(Ventana ventana) {
		super(ventana,"/imagenes/ny_skyline.gif");
		
		setLayout (new GridBagLayout());
		
		GridBagConstraints gbc = new GridBagConstraints();
		
		gbc.insets = new Insets (10,10,30,10);
				
		this.add (labelPista,gbc);
		
		this.setVisible (false);
		setOpaque(false);
	}
	
	public void cambiarVisibilidadACiudad() {
		this.labelPista.setVisible(false);	
	}
	
	public void cambiarVisibilidadAComisaria() {
		this.labelPista.setVisible(false);
	}
	
	public void cambiarVisibilidadADestinos() {
		this.labelPista.setVisible(false);
	}

	public void cambiarVisibilidadAMenuPrincipal() {
		this.setVisible(false);
	}

	public void mostrarMensaje(String stringDePista) {
		this.labelPista.setText(stringDePista);
		this.setVisible(true);
		this.labelPista.setVisible(true);
	}
	
}
